#include <iostream>
#include <vector>
#include <map>

using namespace std;

void FindNumsAppearOnce(vector<int> data, int *num1, int *num2)
{
	map<int, int> dmap;
	for (auto i : data)
		++dmap[i];
	map<int, int>::iterator it;
	int j = 0;
	int a[2];
	for (it = dmap.begin(); it != dmap.end(); ++it)
	{
		if (it->second == 1)
		{
			a[j] = it->first;
			++j;
		}
	}
	*num1 = a[0];
	*num2 = a[1];
}
//
//int main()
//{
//	vector<int> v = { 1,1,2,3,3,4,5,5,6,6 };
//	int a, b;
//	FindNumsAppearOnce(v, &a, &b);
//	cout << a << " " << b << endl;
//	system("pause");
//	return 0;
//}